package com.framework.bdf4j.sysadm.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.framework.bdf4j.sysadm.entity.SysIdepermRole;
import com.framework.bdf4j.sysadm.mapper.SysIdepermRoleMapper;
import com.framework.bdf4j.sysadm.service.SysIdepermRoleService;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * IDE权限分配Service业务层处理
 * 
 * @author cfss
 * @date 2020-07-17
 */
@Slf4j
@Service
@AllArgsConstructor
public class SysIdepermRoleServiceImpl extends ServiceImpl<SysIdepermRoleMapper, SysIdepermRole> implements SysIdepermRoleService {@Override
	public List<Long> selectPermIdByRoleId(Integer roleId) {
		return baseMapper.selectPermIdByRoleId(roleId);
	}

	@Override
	public List<String> selectPermCodeByUserId(Integer userId) {
		return baseMapper.selectPermCodeByUserId(userId);
	}

}
